//
//  TReleaseSellThingsViewController.m
//  LoveShare
//
//  Created by ways on 2017/4/26.
//  Copyright © 2017年 tikeyc. All rights reserved.
//

#import "TReleaseSellThingsViewController.h"

#import "TShoppingListViewController.h"
#import "TCollectionAddPhotoView.h"

@interface TReleaseSellThingsViewController ()
@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet TCollectionAddPhotoView *collectionAddPhotoView;
@property (strong, nonatomic) IBOutlet UIButton *releaseButton;

@end

@implementation TReleaseSellThingsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.title = @"卖东西";
    
    [self initProperty];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
    self.scrollView.contentSize = CGSizeMake(0, TScreenHeight);
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.z
}
*/


#pragma mark - init

- (void)initProperty {
    
    [self initNavigationBarItem];
    
}


- (void)initNavigationBarItem {
    
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"发布记录" style:UIBarButtonItemStylePlain target:self action:@selector(rightBarItemClickAction)];
    self.navigationItem.rightBarButtonItem = rightItem;
}

#pragma mark - Actions Method

- (void)rightBarItemClickAction {
    TShoppingListViewController *shoppingList = [[TShoppingListViewController alloc] init];
    shoppingList.isReleaseSellThingComing = YES;
    [self.navigationController pushViewController:shoppingList animated:YES];
}

@end
